<?php
// @formatter:off
/**
 * @file WCGContainer.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-06-04 03:02:53 +0000 (Tue, 04 Jun 2013) $
 *
 * $Id: WCGContainer.php 68 2013-06-04 03:02:53Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA1/includes/containers/WCGContainer.php $
 */
// @formatter:on

/**
 * @class WCGContainer
 * This class represents a container for objects managed by certain
 * WCGHolder. It logic allows to access this objects in many way, like by id,
 * by name and others.
 */
class WCGContainer extends WCContainer {
	protected $_group = null;
	public function __construct(WCGHolder &$holder, WCGroup &$group, $invalids = false) {
		parent::basicConstructor($holder, $invalids);

		$this->_group = $group;
	}
	public function __destruct() {
		parent::basicDestructor();
	}
	//
	// Public methods.

	//
	// Protected methods.
	protected function loadItemFromHolder($id) {
		return $this->_holder->item($id, $this->_group);
	}
}
?>